package seph;

import net.minecraft.src.GuiButton;
import net.minecraft.src.GuiScreen;

public class GuiWhitelist extends GuiScreen {

	private GuiScreen parent;
	
	private GuiListAchievementPages pages;
	
	public GuiWhitelist(GuiScreen parentGui)
	{
		this.parent = parentGui;
	}
	
	public void initGui()
	{
		this.pages = new GuiListAchievementPages(mc, this); //add slots
		
		this.controlList.add(new GuiButton(0, this.width / 2 - 100, this.height - 28, "Done"));
		
		this.pages.registerScrollButtons(controlList, 7, 8);
	}
	
	protected void actionPerformed(GuiButton button)
	{
		if(button.id == 0) //exit
			this.mc.displayGuiScreen(this.parent);
	}
	
	public void drawScreen(int par1, int par2, float par3)
	{
		this.drawDefaultBackground();
		this.pages.drawScreen(par1, par2, par3);
		drawCenteredString(fontRenderer, "Whitelisted Pages", this.width / 2, 4, 0xffffff);
		super.drawScreen(par1, par2, par3);
	}
}
